package com.vchello.bean.security;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 
 * @author power
 * 角色权限
 */
@TableName("role_security")
public class RoleSecurity extends Model<RoleSecurity> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@TableId
	private int id;

	@TableField("security_id")
	private int securityId;

	@TableField("role_id")
	private int roleId;

	@TableField(exist = false)
	private Security security;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getSecurityId() {
		return securityId;
	}

	public void setSecurityId(int securityId) {
		this.securityId = securityId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public Security getSecurity() {
		return security;
	}

	public void setSecurity(Security security) {
		this.security = security;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}